#ifndef SKSEGMENT_H
#define SKSEGMENT_H

#include <QGraphicsWidget>
#include <QList>
#include "skidable.h"
#include "skpoint.h"

class SkSegment : public QGraphicsWidget,public SkIdAble
{
    QList<QPointF> skPoints;
    QList<SkPoint*> pnts;
public:
    SkSegment(const int& id,const QList<QPointF>& points,QGraphicsItem * parent = 0);
    SkSegment(int id,QList<SkPoint*>& points,QGraphicsItem * parent = 0);

    enum { Type = UserType + 4 };
    int type() const { return Type; }
};

#endif // SKSEGMENT_H
